package com.gmrz.uap.user;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class LoginValidator extends Validator {
    @Override
    protected void validate(Controller c) {
        validateRequiredString("user.pwd", "message", "密码不能为空");
        validateRequiredString("user.user_name", "message", "用户名不能为空");


    }

    @Override
    protected void handleError(Controller c) {
        c.forwardAction("/user/login");
    }
}
